/*
 * defns.h
 *
 *  Created on: Mar 31, 2009
 *      Author: thadeumelo
 */

#ifndef DEFNS_H_
#define DEFNS_H_
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>

     #define FALSE 0
     #define TRUE 1


	#define MAX_CHAR_ARG 255
	#define MAX_ARGS 50


typedef struct tElemento tElemento;
typedef struct tLista tLista;

struct tLista{
        tElemento *ptr;
        int tamanho;
	};

struct tElemento{
        tElemento *prox;
        char comando[256];
        char  **parametros;
        char *entrada;
        char *saida;
        int append;
        int nPars;
        tElemento *pipe;
	};


#endif /* DIFNS_H_ */
